
// 二级导航
.sub-nav-wrap{
  position: relative;
  li{
    text-align: center;
    //width: 33.3333%;
  }
  .caret-b{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25%;
    border-bottom: 1px solid lighten($tone, 0);
    @include transform(translate(0, 0));
    @include transition(all, .2s, ease-in-out);
    .caret{
      border-bottom-color: lighten($tone, 0);
      position: absolute;
      bottom: 0;
      left: 50%;
      margin-left: -2px;
    }
    b.caret{
      border-bottom-color: $white;
      bottom: -1px;
    }
  }

}


.sub-nav{
  margin-bottom: 20px;
  padding: 0;
  border-bottom: 1px solid $light-gray;
  border-radius: 2px;
  li{
    border-radius: 0;
    text-align: center;
    position: relative;
    a{
      color: $gray;
      background: transparent;
      border: none;
      border-radius: 0;
      &:hover,
      &:active{
        color: $black;
        background: transparent;
      }
    }
    b{
      position: absolute;
      top: 6px;
      right: 6px;
      background: #f33;
      color: #fff;
      text-indent: -999px;
      //padding: 0 .4em;
      border-radius: 100px;
      font-size: .8em;
      display: block;
      width: 8px;
      height: 8px;
    }
    &.active{
      a{
        color: $tone !important;
      }
      border-bottom: 1px $tone solid;
    }
  }
}


// phone
@media (max-width: $screen-xs-max) {



  // 二级导航

  .sub-nav{
    margin-bottom: 0;
  }

  .sub-nav-wrap{
    position: relative;

    margin-left: 6px;
    margin-right: 6px;

    li{
      a{
        margin-right: 0 !important;
        padding: 10px 8px;
      }
    }
    .caret-b{
    }
  }
}

@media (max-width: $screen-xs-max) and (min-width: $screen-xs) {

  // 二级导航

  .sub-nav{
    margin-bottom: 14px;
  }
}


